<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>自定义登录页</title>
    <link th:href="@{/css/bootstrap.css}" rel="stylesheet">
    <link th:href="@{/css/login/login.css}" rel="stylesheet">
    <script type="text/javascript" th:src="@{/js/jquery.min.js}"></script>
<!--    <script type="text/javascript" th:src="@{/js/login/login.js}"></script>-->
</head>
<body>
    <form id="form" th:action="@{/login}" th:method="post"  class="login-form">
        <h1>登录</h1>
        <div class="txc">
            <input id="username" name="username" type="text" placeholder="请输入用户名">
        </div>
        <div class="txc">
            <input id="password" name="password" type="password" placeholder="请输入密码">
        </div>
        <button class="btn btn-primary btn-lg btn-block" type="submit">登录</button>
        <p class="bg-danger" th:if="${param.error}">用户名或密码错误，请重试！</p>
        <p class="bg-info" th:if="${param.logout}">您已成功退出系统。</p>
    </form>
</body>
</html>